/**
 * @param {number[]} nums
 * @param {number} k
 * @return {number}
 */
var findKthLargest = function (nums, k) {


  nums.sort((a, b) => a - b)
  let len = nums.length

  return nums[len - k]


};